package com.nengchuan.kbms.dfs.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.nengchuan.kbms.common.XmlPageDTO;
import com.nengchuan.kbms.dfs.annotation.Relation;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 我的审批 DTO
 * </p>
 *
 * @author abe
 * @since 2020-04-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "FlowVerifyPageDTO 对象", description = "我的审批 DTO")
public class FlowVerifyPageDTO extends XmlPageDTO {

    @ApiModelProperty(value = "任务名称", position = 10)
    @Relation(Relation.Bind.LIKE)
    private String taskName;

    @ApiModelProperty(value = "流程状态", position = 20)
    @Relation
    private String statusName;

    @ApiModelProperty(value = "发起时间（开始）", position = 30)
    @Relation(value = Relation.Bind.GE, field = "create_time")
    private Long createTimeBegin;

    @ApiModelProperty(value = "发起时间（结束）", position = 40)
    @Relation(value = Relation.Bind.LE, field = "create_time")
    private Long createTimeEnd;

    /** 审批人 */
    @JsonIgnore
    @Relation
    private Long verifyId;

    @JsonIgnore
    @Relation(Relation.Bind.LIKE)
    private String verifyName;

}
